package com.hbjycl.entity;

import org.hibernate.annotations.IndexColumn;
import org.hibernate.annotations.Type;

import javax.persistence.*;

import java.util.Set;

/**
 * 课件
 *
 * @author cl
 *
 * @datetime 2014年7月23日上午10:01:52
 */
@Entity
public class Tree extends BaseEntity
{
    private static final long serialVersionUID = -8031755517681308441L;

    private String tid; //节点id
    private String pid; //上级id
    private String pname; //父级菜单名称
    private String name; //树名
    private String open; //是否展开
    private String checked; //是否选中
    private String title; //标题
    private String content; //内容
    private String code; //代码块
    
    @Column(nullable = false, unique = true)
	public String getTid() {
		return tid;
	}
	public void setTid(String tid) {
		this.tid = tid;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	@Column(nullable = false)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getOpen() {
		return open;
	}
	public void setOpen(String open) {
		this.open = open;
	}
	public String getChecked() {
		return checked;
	}
	public void setChecked(String checked) {
		this.checked = checked;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Column(length=1000000000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Column(length=1000000000)
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
    
   
}
